//
//  UpdateCell.m
//  DaysComicSugar
//
//  Created by dllo on 15/4/22.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "UpdateCell.h"

@implementation UpdateCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(instancetype)initWithFrame:(CGRect)frame{
    self=[super initWithFrame:frame];
    if (self) {
        self.mylabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 110, 110, 40)];
        [self.contentView addSubview:self.mylabel];
        self.mylabel.font=[UIFont systemFontOfSize:12];
        self.mylabel.textAlignment=NSTextAlignmentCenter;
//        self.mylabel.numberOfLines=2;
//        [self.mylabel sizeToFit];
        [self.mylabel release];
//        self.mylabel.backgroundColor=[UIColor yellowColor];
        
  
        
        self.myImageView=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 110, 120)];
        self.myImageView.layer.borderWidth=2;
        self.myImageView.layer.cornerRadius=10;
        [self.contentView addSubview:self.myImageView];
        [self.myImageView release];

        self.numberLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 100, 110, 18)];
        self.numberLabel.backgroundColor = [UIColor blackColor];
//        self.numberLabel.shadowColor=[UIColor colorWithWhite:1 alpha:0.5];
        self.numberLabel.alpha = 0.5;
        self.numberLabel.font=[UIFont systemFontOfSize:11];
        self.numberLabel.textAlignment= NSTextAlignmentCenter;
        self.numberLabel.layer.borderWidth=2;
        self.numberLabel.layer.cornerRadius=10;
        self.numberLabel.textColor=[UIColor whiteColor];
        [self.myImageView addSubview:self.numberLabel];
        
        [self.numberLabel release];
        
        
    }
    return self;
}
-(void)dealloc{
    [_mylabel release];
    [_myImageView release];
    [super dealloc];
}





@end
